package com.chenfwind.service;

import java.util.List;

import com.chenfwind.domain.Permission;
import com.chenfwind.domain.Role;
import com.chenfwind.domain.User;
import com.chenfwind.domain.UserTrack;
import com.chenfwind.domain.vo.UserVO;

public interface UserService {
	
	
	public List<User> getAllUser(); 
	public int delUser(String userId);
	/*
	 * 注册
	 */
	public void register(User user);
	
	public User findUserById(String id);
	
	public int modifyUserInfo(User user,UserVO userVO);
	/****
	 * 通过用户名获取用户对象
	 * 
	 * @param username
	 * @return
	 */
	public User getUserByAccount(String account);
	
	public User getUserByAccountAndPassword(String account , String password);
	/***
	 * 通过用户名获取权限资源
	 * 
	 * @param username
	 * @return
	 */
	
	public List<String> getPermissionByAccount(String account);
	
	
	/**
	 * test多对多映射
	 */
	public User getUser(String account);
	public Role getRole(String name);
	
	public List<Permission> getPermission(String roleId);
	
	public String getAccountByUID(String userId);
}
